package com.cloud.provider.kafka;

import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class LogMessageReceiver {

    //@KafkaListener(topics = "log")
    public void receiveMessage(ConsumerRecord<String, String> record) throws Exception {
        String result = record.value();
        log.debug("result >>> {}", result);
    }

}
